/*
 * Displacement.cpp
 *
 *      Author: Jerome RD Soine and Christoph A Brand
 *      Institution: Schwarz goup, Institute for Theoretical Physics, Heidelberg University, Germany
 */


#include "../../../include/base/utility/Displacement.h"



Displacement::Displacement(Point<2> p, Vector<double> v)
{
	assert(v.size()==2);

	pnt = new Point<2>();
	vec = new Vector<double>(2);

	(*pnt) = p;
	(*vec) = v;
}

Point<2> Displacement::get_point()
{
	return (*pnt);
}

Vector<double> Displacement::get_displacement()
{
	return (*vec);
}

double Displacement::get_P(unsigned int comp)
{
	return (*pnt)(comp);
}


double Displacement::get_V(unsigned int comp)
{
	return (*vec)(comp);
}

